package lzf;

public class main {

	public static void main(String[] args) {
	
		animal animal;
		
		animal = new dog(true,true,1,4);
		animal.sayHello();
		animal.sayHello(1);
		animal.sayHello(0);
		System.out.println("\n------------------------------------------------------");
		
		animal = new cat(true, true, 1, 4);
		animal.sayHello();
		animal.sayHello(1);
		animal.sayHello(0);
		
		animal = new flog(true, true, 1, 4,true, true);
		animal.sayHello();
		animal.sayHello();
		animal.sayHello(1);
		animal.sayHello(0);
		animal.printfExtent();
	}

}
